export function isPromise(fn: any) {
	return (typeof fn === 'object' || typeof fn === 'function') && fn.then === 'function'
}

export function $(selector: string) {
	return document.querySelector(selector)
}
